<style>
.container {
    border: 5px solid red;
    display: inline-block;
}
.box {
    border: 5px solid;
    width: 100px;
    height: 50px;
}
</style>

<div>The four boxes below should look identical.</div>

<div class="container">
    <div class="box" style="-webkit-writing-mode: horizontal-tb;"></div>
</div>

<div class="container">
    <div class="box" style="-webkit-writing-mode: vertical-lr;"></div>
</div>

<div class="container">
    <div class="box" style="-webkit-writing-mode: vertical-rl;"></div>
</div>
